package test.it.concept.pin.pojoadapters.adapters;

import it.concept.pin.proxy.AbstractProxyAdapter;
import test.it.concept.pin.pojoadapters.pojo.FullNamePojoToInterface;

public class FullNameProxyAdapter extends AbstractProxyAdapter<FullNamePojoToInterface> {

	public FullNameProxyAdapter( FullNamePojoToInterface pojo ) {
		
		super( pojo );
		
	}

	public String getName() {
		
		return getPojo().nameAndLast.split("\\/")[0];
		
	}

	public String getLastName() {
		
		return getPojo().nameAndLast.split("\\/")[1];
		
	}

	/**
	 * Proxy adapter does not implement getNickName. It's expected to be implemented by the pojo itself!
	 */
	
}
